package com.example.myjavafx;

import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

public class TodoItem {
    private final StringProperty description = new SimpleStringProperty();

    public TodoItem(String description) {
        this.description.set(description);
    }

    // Getter 和 Property 方法
    public StringProperty descriptionProperty() {
        return description;
    }
    public String getDescription() {
        return description.get();
    }
}